<template>
     <div class="error">
        <van-empty description="404...找不到页面" />
        <van-button @click="backTo" type="default">返回首页</van-button>
     </div>
</template>
<script lang="ts" setup>
import { useRouter } from 'vue-router'
const $router = useRouter();
const backTo = ()=> {
    // $router.go(-1)
    $router.push({path: '/'})
}
</script>
<style>
.error {
    text-align: center;
}
</style>